# -*- coding: utf8 -*-

import os
import sys
reload(sys) 
sys.setdefaultencoding('utf8')
import caller
import webkit
import webpage
import webelement
import time
import caller

gconfig = caller.GlobalConfig()
gconfig.init("10.58.222.103:2181")

wk = webkit.WebKit("test")
page = wk.getWebPage("http://www.baidu.com/", 30000, 40000)

if page is None:
    _exit(0)

print "Get success."
print page.getTitle()

page.destroy()
wk.release()

